// test.ts

import { MockMethod } from 'vite-plugin-mock'
export default [
  {
    url: '/api/trade/PC/Address/Lists/index',
    method: 'post',
    response: ({ query }) => {
      return {
        result: {
          status: 1,
          data: [
            {
              id: '26864769',
              uid: 2100012788,
              tal_id: 'TaloC1FAp9pa7kcr21jNFxqOsA',
              name: '\u5f20\u6ce2',
              phone_code: '86',
              phone: '156****0958',
              zipcode: '',
              province_id: '1',
              city_id: '1',
              county_id: '1',
              province_name: '\u5317\u4eac\u5e02',
              city_name: '\u5e02\u8f96\u533a',
              county_name: '\u4e1c\u57ce\u533a',
              detail: '111',
              note: '',
              is_default: 0,
              mobile: '',
              modify_time: '2023-02-13 09:25:29',
              create_time: '2023-02-13 09:25:29',
              orderHint: '',
            },
          ],
        },
      }
    },
  },
  {
    url: '/api/trade/PC/Address/Save/index',
    method: 'post',
    timeout: 2000,
    response: {
      status: 1,
      msg: '成功',
      data: ' ',
    },
  },
  {
    url: '/api/trade/PC/Address/Delete/index',
    method: 'post',
    timeout: 2000,
    response: {
      status: 1,
      msg: '成功',
      data: ' ',
    },
  },
] as MockMethod[]
